﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="生成HTML.aspx.cs" Inherits="HTMLX" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>   
     <div id="add">
         <input id="url" type="text" />
         <br />
         <input id="Button1" type="button" value="button" onclick="add();" /></div>
    
    </div>
    </form>
    <script type="text/javascript" language="javascript">
    //显示文件函数
    function add()
    {

         var file = HTMLX.xm(document.form1.url.value).value;//得么返回文件名
        document.getElementById("add").innerHTML += "<a href='"+file+"' target=\"_blank\" >"+file.replace("CreateASPXfile/","").replace("ajaxpro/","")+"</a>";
        
    }
   
    </script>
</body>
</html>
